package com.shop.reply.dao;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import com.shop.board.domain.ShopBoardCommand;
import com.shop.reply.domain.ShopBoardReplyCommand;
@Component
public class ShopBoardReplyDaoImpl extends SqlSessionDaoSupport implements ShopBoardReplyDao{

	@Override
	public int getRowCount(Map<String, Object> map) {
		return getSqlSession().selectOne("selectCount",map);
	}
	@Override
	public List<ShopBoardReplyCommand> selectShopBoardReplyList(int sb_num) {
		List<ShopBoardReplyCommand> list = getSqlSession().selectList("selectShopBoardReplyList",sb_num);
		return list;
	}
	@Override
	public void insertShopBoardReply(ShopBoardReplyCommand shopBoardReplyCommand) {
		getSqlSession().insert("insertShopBoardReply",shopBoardReplyCommand);
	}

}
